home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-01
/
pdcurs21.zip
/
PRIVATE.ZIP
/
_USLEEP.C
< prev
next >
Wrap
Text File
|
1992-11-21
|
1KB
|
50 lines
#define CURSES_LIBRARY 1
#include <curses.h>
#undef PDC_usleep
#if defined(DOS) && defined(MSC)
#include <time.h>
#endif
#ifndef NDEBUG
char *rcsid__usleep = "$Header: c:/curses/private/RCS/_usleep.c%v 2.0 1992/11/15 03:24:40 MH Rel $";
#endif
/*man-start*********************************************************************
PDC_usleep() - waits for specified number of microseconds
PDCurses Description:
This routine is intended to provide a mechanism to wait the
specified number of microseconds. This routine is provided for
users of the Microsoft compilers under DOS as the default
library does not provide a suitable function.
Under any other Operating System/Compiler option, this function
does nothing.
Portability:
PDCurses void PDC_usleep( clock_t );
Acknowledgement
PDC_usleep() was written by John Steele (jsteele@netcom.com)
**man-end**********************************************************************/
#if defined(DOS) && defined(MSC)
void PDC_usleep(clock_t wait)
{
clock_t goal;
goal = wait + clock();
while (goal > clock())
;
return;
}
#else
void PDC_usleep(long wait)
{
return;
}
#endif